package com.yuexun.dhdoctor.module.Contract.api;


import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.module.Contract.bean.ChildDepartmentsBean;
import com.yuexun.dhdoctor.module.Contract.bean.GroupDataBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by work-jx on 2016/7/19.
 */
public interface DeptApi {
    //部门列表树
    @FormUrlEncoded
    @POST("getAllDepartment.json")
    Observable<BaseEntity<GroupDataBean>> getAllDepartment(@FieldMap Map<String, String> praise);

    //部门列表信息
    @FormUrlEncoded
    @POST("getDepartmentTreeByParentId.json")
    Observable<BaseEntity<GroupDataBean>> getGroupDatas(@FieldMap Map<String, String> praise);

    //全部部门列表信息
    @FormUrlEncoded
    @POST("getDepartmentListByParentId.json")
    Observable<BaseEntity<ChildDepartmentsBean>> getAllGroup(@FieldMap Map<String, String> praise);
}
